﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserPage.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="_0912276_ChatClient.WebForm4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <style type="text/css">
        .wuc_nd_table
        {
            width: 100%;
            height: 150px;
            border: 2px solid #4787ED;
            margin: 4px 4px 4px 4px;
        }
        .style1
        {
            width: 20px;
        }
        .style6
        {
            width: 449px;
        }
        .style7
        {
            height: 27px;
            width: 449px;
        }
        .style2
        {
            height: 19px;
            width: 449px;
        }
        .style5
        {
            height: 31px;
        }
        .style8
        {
            height: 31px;
            width: 449px;
        }
        .SearchCenter
        {
            text-align:center;
            /*height:400px;*/
            margin-top:40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
    <div class="SearchCenter">
        <div>
            Member ID:
            <asp:TextBox ID="txtMembershipID" runat="server" Width="184px"></asp:TextBox>
        </div>
        <div>
            First name:
            <asp:TextBox ID="txtFirstName" runat="server" Width="181px"></asp:TextBox>
        </div>
        <div>
            Last name:
            <asp:TextBox ID="txtLastName" runat="server" Width="179px"></asp:TextBox>
        </div>
        <div>
            <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
            <br />
            <br />
        </div>
   
    <div>
        <asp:Panel ID="Panel1" runat="server" Visible="False">
            <asp:Label ID="Label2" runat="server" Text="Can't find anything" 
                Font-Bold="True" ForeColor="#FF5050" Height="40px"></asp:Label>
        </asp:Panel>
    </div>
    <asp:DataList ID="dlNguoiDung" runat="server" CellPadding="3" RepeatColumns="2" RepeatDirection="Horizontal"
        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
        GridLines="Both" CellSpacing="2">
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <ItemTemplate>
            <table class="wuc_nd_table">
                <tr>
                    <td class="style1" rowspan="4">
                        &nbsp;
                    </td>
                    <td class="style6">
                        ID:<asp:Label ID="lbID" runat="server" Text='<%# Eval("emp_no") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style7">
                        First Name:<asp:Label ID="lbName" runat="server" Text='<%# Eval("first_name") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        LastName:<asp:Label ID="Label1" runat="server" Text='<%# Eval("last_name") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="style6">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("emp_no", "~/UpdateInfor.aspx?id={0}") %>'>Update Information</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td class="style5">
                    </td>
                    <td class="style8">
                        &nbsp;<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("emp_no", "~/RegularMember.aspx?id={0}") %>'>Delete Regular User</asp:HyperLink>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
     </div>
</asp:Content>
